package com.deer.wms.ASN.manage.model.in;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

/**
 * @author : wei
 * @since : 2024-01-12 15:46:25
 **/
@ContentRowHeight(20)
@HeadRowHeight(25)
@ColumnWidth(25)
@Data
public class AcceptRecordExportModel {

    @ExcelProperty(value = "物料编码" ,index = 1)
    private String itemCode;

    @ExcelProperty(value = "物料名称" ,index = 2)
    private String itemName;

    @ExcelProperty(value = "批次" ,index = 3)
    private String batchName;

    @ExcelProperty(value = "数量" ,index = 4)
    private Double quantity;

    @ExcelProperty(value = "追踪号" ,index = 5)
    private String boxCode;

    @ExcelProperty(value = "收货库位" ,index = 6)
    private String cellCode;

    @ExcelProperty(value = "收货时间" ,index = 7)
    private String acceptTime;


    public AcceptRecordExportModel(AcceptRecord acceptRecord) {
        this.itemCode = acceptRecord.getItemCode();
        this.itemName = acceptRecord.getItemName();
        this.batchName = acceptRecord.getBatchName();

        this.quantity = acceptRecord.getQuantity();
        this.boxCode = acceptRecord.getBoxCode();
        this.cellCode = acceptRecord.getCellCode();
        this.acceptTime = acceptRecord.getAcceptTime();
    }

}
